
import request from '@/utils/request';

export function listData(query) {
  return request({
    url: `/system-set/admin${query}`,
    method: 'get',
  });
}

export function listRoleData() {
  return request({
    url: `/system-set/role/all`,
    method: 'get',
  });
}


export function postAddData(form) {
  return request({
    url: `/system-set/admin`,
    method: 'post',
    data:form
  });
}


export function putEditData(id,form) {
  return request({
    url: `/system-set/admin/${id}`,
    method: 'put',
    data:form
  });
}


export function deleteData(form) {
  return request({
    url: `/system-set/admin`,
    method: 'delete',
    data:form
  });
}